package com.biz.primus.ms.member.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * 会员密保问题
 *
 * @author jun.liu
 */
@Entity
@Table(name = "member_secret_question")
@Data
@EqualsAndHashCode(callSuper = true)
public class MemberSecretQuestion extends BaseEntityPKIncrement
{

    /**
     * 关联会员详情Member对象
     */
    @Column(name = "memberId")
    private Long memberId;

    /**
     * 问题
     */
    @Column(name = "question", nullable = false, length = 100)
    private String question;

    /**
     * 答案
     */
    @Column(name = "answer", nullable = false, length = 100)
    private String answer;

}
